import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase="Dbshop007_查看销售管理发货单"

firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu2(firefox,"销售管理","发货单")

goodStatus=firefox.find_element_by_xpath("//table/tbody/tr[1]/td[7]").text
# 点击查看
firefox.find_elements_by_link_text("查看")[0].click()

try:
    firefox.find_element_by_xpath("//span[@class='text-success']").text==goodStatus
    writeLog("%s 测试通过"%testCase)
except:
    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)